import request from "@/utils/request";

export default {
  // 获取学生列表
  getStudentList(pageNum, pageSize) {
    return request.get(
      `/api/v1/student/info/queryInfo?pageNum=${pageNum}&pageSize=${pageSize}`
    );
  },

  // 获取学生详情
  getStudentDetail(id) {
    return request.get(`/api/v1/student/info/detail/${id}`);
  },

  // 创建学生
  createStudent(data) {
    return request.post("/api/v1/student/info/add", data);
  },

  // 更新学生
  updateStudent(data) {
    return request.post("/api/v1/student/info/edit", data);
  },

  // 删除学生
  deleteStudent(id) {
    return request.delete(`/api/v1/student/info/delete/${id}`);
  },
};
